package com.ruoyi.course.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.utils.PageUtils;
import com.ruoyi.course.domain.ExamClassCourse;
import com.ruoyi.course.vo.ExamClassCourseVo;
import com.ruoyi.course.mapper.ExamClassCourseMapper;
import com.ruoyi.course.service.IExamClassCourseService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 班次课程关系Service业务层处理
 *
 * @author Tellsea
 * @date 2025-09-26
 */
@Service
public class ExamClassCourseServiceImpl extends ServiceImpl<ExamClassCourseMapper, ExamClassCourse> implements IExamClassCourseService {

    @Override
    public TableDataInfo<ExamClassCourseVo> queryList(ExamClassCourseVo entity) {
        return PageUtils.buildDataInfo(this.baseMapper.queryList(PageUtils.buildPage(), entity));
    }

    @Override
    public List<ExamClassCourseVo> queryAll(ExamClassCourseVo entity) {
        return this.baseMapper.queryList(entity);
    }

    @Override
    public ExamClassCourseVo queryById(Long id) {
        return this.baseMapper.queryById(id);
    }
}
